package com.lemontree.springmvc.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/8/31
 */
public class Home {
    public static int i = 1;
    static {
        i++;
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
    }
    @NotNull(message = "不能为空")
    @Size(min = 5,max = 16,message = "密码长度不对")
    private String name;

    @NotNull(message = "密码不能为空")
    private String password;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
